﻿using FluentNHibernate.Mapping;
using MedicalCare.EntityDefinitions.Entities;

namespace MedicalCare.EntityMappings.EntityMaps
{
    public class BloodPressureMap : ClassMap<BloodPressureEntity>
    {
        public BloodPressureMap()
        {
            Table("BloodPressure_Data");
            Id(x => x.Id).Column("Id").Not.Nullable();
            Map(x => x.FamilyId).Column("PatientId");
            Map(x => x.SBP).Column("SBP");
            Map(x => x.DBP).Column("DBP");
            Map(x => x.MBP).Column("MBP");
            Map(x => x.Pulse).Column("Pulse");
            Map(x => x.ReceiveTime).Column("ReceiveTime");
        }
    }
}